FROM mysql:8.0
# 维护人员
LABEL maintainer="2221691750@qq.com"


# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone


# mysql备份使用定时任务(请更改正确的数据库账号密码和数据库名)
# COPY ./scripts/ /data/mysql/backup/scripts/
# RUN crontab /data/mysql/backup/scripts/crontabfile
# RUN service cron start